home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / usr / share / gtksourceview-2.0 / language-specs / cpp.lang < prev    next >
Extensible Markup Language  |  2009-10-02  |  4KB  |  107 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3.  
  4.  Authors: Marco Barisione, Emanuele Aina
  5.  Copyright (C) 2005-2007 Marco Barisione <barisione@gmail.com>
  6.  Copyright (C) 2005-2007 Emanuele Aina
  7.  
  8.  This library is free software; you can redistribute it and/or
  9.  modify it under the terms of the GNU Library General Public
  10.  License as published by the Free Software Foundation; either
  11.  version 2 of the License, or (at your option) any later version.
  12.  
  13.  This library is distributed in the hope that it will be useful,
  14.  but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16.  Library General Public License for more details.
  17.  
  18.  You should have received a copy of the GNU Library General Public
  19.  License along with this library; if not, write to the
  20.  Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  21.  Boston, MA 02111-1307, USA.
  22.  
  23. -->
  24. <language id="cpp" _name="C++" version="2.0" _section="Sources">
  25.     <metadata>
  26.       <property name="mimetypes">text/x-c++;text/x-cpp;text/x-c++src</property>
  27.       <property name="globs">*.cpp;*.cxx;*.cc;*.C;*.c++</property>
  28.       <property name="line-comment-start">//</property>
  29.       <property name="block-comment-start">/*</property>
  30.       <property name="block-comment-end">*/</property>
  31.     </metadata>
  32.  
  33.     <styles>
  34.         <style id="keyword" _name="Keyword" map-to="c:keyword"/>
  35.         <style id="type" _name="Data Type" map-to="c:type"/>
  36.         <style id="common-defines" _name="Common Defines" map-to="c:common-defines"/>
  37.     </styles>
  38.  
  39.     <definitions>
  40.         <!-- C++-specific stuff (i.e. stuff which is not C) -->
  41.         <context id="cpp-proper">
  42.             <include>
  43.                 <context id="keywords" style-ref="keyword">
  44.                     <keyword>and</keyword>
  45.                     <keyword>and_eq</keyword>
  46.                     <keyword>bitand</keyword>
  47.                     <keyword>bitor</keyword>
  48.                     <keyword>catch</keyword>
  49.                     <keyword>compl</keyword>
  50.                     <keyword>const_cast</keyword>
  51.                     <keyword>delete</keyword>
  52.                     <keyword>dynamic_cast</keyword>
  53.                     <keyword>false</keyword>
  54.                     <keyword>friend</keyword>
  55.                     <keyword>new</keyword>
  56.                     <keyword>not</keyword>
  57.                     <keyword>not_eq</keyword>
  58.                     <keyword>operator</keyword>
  59.                     <keyword>or</keyword>
  60.                     <keyword>or_eq</keyword>
  61.                     <keyword>private</keyword>
  62.                     <keyword>protected</keyword>
  63.                     <keyword>public</keyword>
  64.                     <keyword>reinterpret_cast</keyword>
  65.                     <keyword>static_cast</keyword>
  66.                     <keyword>this</keyword>
  67.                     <keyword>throw</keyword>
  68.                     <keyword>true</keyword>
  69.                     <keyword>try</keyword>
  70.                     <keyword>typeid</keyword>
  71.                     <keyword>using</keyword>
  72.                     <keyword>xor</keyword>
  73.                     <keyword>xor_eq</keyword>
  74.  
  75.                     <keyword>class</keyword>
  76.                     <keyword>namespace</keyword>
  77.                     <keyword>typename</keyword>
  78.                     <keyword>template</keyword>
  79.                     <keyword>virtual</keyword>
  80.                 </context>
  81.  
  82.                 <context id="types" style-ref="type">
  83.                     <keyword>bool</keyword>
  84.                     <keyword>explicit</keyword>
  85.                     <keyword>export</keyword>
  86.                     <keyword>inline</keyword>
  87.                     <keyword>mutable</keyword>
  88.                     <keyword>wchar_t</keyword>
  89.                 </context>
  90.  
  91.                 <context id="common-defines" style-ref="common-defines">
  92.                     <keyword>__STDC__</keyword>
  93.                     <keyword>__cplusplus</keyword>
  94.                 </context>
  95.             </include>
  96.         </context>
  97.  
  98.         <!-- actual language definition: C++-specific stuff plus everything from C -->
  99.         <context id="cpp">
  100.             <include>
  101.                 <context ref="cpp-proper"/>
  102.                 <context ref="c:c"/>
  103.             </include>
  104.         </context>
  105.     </definitions>
  106. </language>
  107.